package com.mutou.web.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.mutou.domian.model.Type;
import com.mutou.service.TypeService;

@Controller
@RequestMapping(value="type")
public class TypeController {

	@Autowired
	private TypeService typeService;
	
	@RequestMapping(value="list")
	@ResponseBody
	public List<Type> get(){
		Map<String, Object> param = new HashMap<String, Object>();
		param.put("mark", "");
		return typeService.queryEntityList(param); 
	}
}
